added createDirectory
updated DateTime to make use of unix timestamps