* Refactored duplicate REPL code * Cleanup * Added comments * Added repl.Options * Added comment * Clenaup * Cleanup