amended error messages. cleaned spacing