commented code
added socket io