Added checks to prevent redefinition of built-in functions. And, implemented 'quit' function