added AM PM feature and can handle lunch hour deduction