Fixed code formatting to follow standards