updated some print statements and error messages