fix web server to run correctly

1. fix TableWriter format to be value followed by prob. 
2. fix web server to run correctly