Implement module reference
Make Main.repl more customizable