fixed date format issue with datepicker, #205 and added debugging gems