Align source code formatting

Minor change to align source code structure to be internally
consistent.

* Remove trailing whitespaces
* Use tabs everywhere
* Align definitions
Merge pull request #4 from mindjiver/master

Make the source code more pretty
Fixes #4