iterated version number, cleaned
added working dateformat function and clarity comments