applied consistent formatting rules to all files, fixes #42