added backspace support

also remove thread.sleep in console loop and refactored newline string
handling