fixes unmatched closing parenthesis and docblock