Added more detailed JavaDoc and comments on the LevelController class.