Added exception handling to the clone() function. Also ran it through astyle for formatting.
More error handling for memory errors.
Changed exception type caught in make_expression_tree.