Move user parsing code into it's own function

This adds the 'parse_users()' function
Clean and update the comments and layout
Declare variables to use in functions

WARNING! This changes a lot of variables and changes the way that the
functions are structured.

Use local variables inside functions to make the code easier to read.
Add a message for parse_users() and fix comment

This removes a comment and add a docstring to message().