got asn.1 error messages working, plus a bit more refactoring