Formatted/beautified all source files

Formatted all source files (main and test) using Scalariform.