Refactored a bit spin.moveTo and added comments
Removed unused internal functions
Added comments to spin.getPanelState()
spin.getPanelState() throws an error if panel has no state