Added comments to time parsing function