clears selection almost always
deselct works when clicking on things other than stages
added comments
merging master with this