Fix for crash on empty list
Added many new features to REPL