add manpage for socks
remove a lot of useless code