added html output file functionality
added file writer with date + some refactoring