more debug info in server code
add debug info to python server
fix javascript bug in html file