Refactored code (2 space -> 4 space tabs; LX preffix -> no preffix), updated xcode project accordingly
Improved input logic