adds test for changing document name and comment until date
fixes #18
fixes unwanted whitespace in date formatting
fixes #15
adds indication of required form fields