added date compare functions to get a correct time after standby
added function to autostart the program with the -s parameter