added semicolons and reformatted according to IDEA/PhetStyle.xml