Added spaces, semicolons and changed indentation.