Added comments and formatting to Main and Office