added web server, refactored communication class