Added command history through arrow keys. Added prefix to input for later usage.