Made some modifications to the error messages for input types and small bug fixes