Added basic error handling and Lisp primitive procedures