Fixed commandline parameter handling logic
Fixed a bug in updatestatistic. If userlist is empty the program crashes in division by zero