updated comments, style and added tcp, udp, pc and files for npm, and .gitignore