Webapp big refactor

#348
lack of ducumentation