removed calls to mywarn(), updated myerror() docstr