Added facility to set hour min max range. Allowed minuteIncrement to be overridden by user. Added some error handling
Added facility to use 12hr clock. Optimised event handlers.