restructered code as well as added the ability to import code in the REPL