socket prettification, method parsing

everything done except for method declarations