Network code fixed

-Fixed the networking send() issue
-Added a winsock error formater
-Added optional file log
-Minor fixes everywhere