update docs and fix incorrect variable access bug in webserver.py