web: add bunch of documentation and move around some stuff