Fix coding style
In order to move forward with #95, we need to make the code ready for the transition. This issue was opened to track changes to the application coding style, i.e. standardizing function names, adding missing headers (#80) and fixing indentation, using GNOME C Coding Style Guidelines.