Added debugging flags
Cleaned up and refactored code, and added camera movement with left and right arrow keys