Enhance documentation, format to PhET standards, and remove unused variable in function call