moved the call to repl into the kernel object
allow processing of parts of the text
refactored how the line is processed to make it available outside the repl
refactored how the line is processed to make it available outside the repl