Major cleanup of code. More modular errors. New errortype: dropped parenthesis