Update style and indentation everywhere. Fix a few minor issues.