Formatted codebase to have the same spacing style, removed trailing white-spaces, and other minor fixes.