Added methods getConnectingState, getClaimingState. Removed methods isConnected, isClaimed. getClaimcode now returns false if called before connect. Added error message if socket is closed unexpectedly.