Applied consistent formatting to all cpp and h files, except certain SVS libraries and windows-specific files