comment more stuff, almost exatly likebefore except for import and socket definition