Added const qualifiers to some functions for safer programming
Fixed incompatible pointer warning in user_list.c
Cleaned up the code a tiny bit