bugfix: init mathfun used wrong sizeof, error handling: report unexpected eof, testing++