Implemented error handler and corrected comment block.