Added option to enable/disable debug logging and improve windows
compatibility. Improved recognition of release date.