added server stuff

server stuff added and documented