Documentation and a minor bug fix (valiDate)