Formatted all code. NO FUNCTIONALITY CHANGES