Added comments. Servers modified. Not tested. Need to insert the cleaning functions