Tweaks, bug fixes, formatting problems, mainLoop now actually loops.