Codestyle corrections

This corrects the following things in some sources:
- space usage instead of tabs
- newlines before return statements
- lines that exceed 120 characters
- some more brackets for better readability

https://bugzilla.gnome.org/show_bug.cgi?id=726227