fixed ANSI escape codes in prompt for backspaces and new lines, added documentation