More with attributes, added constraints.
Fixed date bug in visitreport.