Make clean whole server folder
Separate common functions to other file
New Read function prevent partial reading
Message sending & receiving functions