fix syntax error
add placeholder for tcstats.html to prevent 500 errors
more serious logging infrastructure
introduce a proper config file