update readme, cleanup server code