Add comments on server.py and Move functions to another file: server_functions.py
Other comments & improvements on server_functions. Still server_functions not in use