added missing LICENSE file
implement socket io, WIP
remove trailing newlines
add debug