improvements: filenaming, error reporting, date stamping