some code cleanup. added setting to auto accept files. socks5 connections are now threaded