Cleaning up the main and loading scenes; adding code comments