Proper error messages

Also fixed my maggotry.