Improved code style.

Trailing whitespace removed.
More consistant identation.
More minor tweaks in formatting and remarks.

Signed-off-by: Bert Timmerman <bert.timmerman@xs4all.nl>