Fixed error when 12pm is used. Updated documentation.