fixed a bug with the clientstate
Added a readme