added input REPL
added command parsing to REPL
refactored cmd into seperate file