updated notes
abstracted format_error
fixed match risks date problem