Reformatted the entire code base

Please follow those guideline:
   4 spaces instead of tabs
   2 lines between functions
   following K&R style
   common sense: look at the rest of the code and try to be consistent :-)

Astyle used for reformatting the code with the following options:
--indent-namespaces
--unpad-paren
--indent=spaces=4
--convert-tabs
--pad-header
--unpad-paren
--max-code-length=120
-A3

Also, manually adjusted spaces in function definition.

This commit will make comparison between commits before and after quite difficult.
Please use the previous commit for checking changes BEFORE the reformat took place
hash: d2a7a09a827014c0aa1286522195227379799427