Added range keeping code to master. Cleaned up keyboard control outputs.