command parser/line working on terminal

added debug mode to test the terminal without actual connection