reworked client, server and added server web interface