added error messages
changed float max and min values
changed float max and min values