much improved time configuration with support of windows and multiple bugs fixed, also detects utc and localtime