Final Pull (then I'll work directly on your repository)

Added many comments, changed "if compare..." to "if len(newuesers)>0:"
moved newusers calculation, now works even if more people log out than
log in within 5s period. Created some alternatives and left originals as
double comments.