[#5] Handle possible error and add comments
Problem:In pull request #466 (closed) we implemented a Morley REPL. But there one error condition was not handled. It also lacked some possible comments.
Solution: Handle the error condition and include comments.