More optimizations and file organization. Changed user response to be immediate upon key press.