Added new constant for num factets.
Removed unused size attribute and changed some of the attributes to transcient for more efective serialization
Solved issue with server loosing connection when client left