Began chatmain, fixed bug in chatserver with saving port