added repl mode
added some docs