got rid of extra modules refactored all the code into repl.c