Added getState() functionality
Version bump
Added query example