more built-in procedures, eliminate extra parentheses from generated code, bug fixes