Modernized the code for iOS 6+ : ARC, better use of auto-synthesize, properties, etc
Updated initializer to use instancetype
Refactored selectedItem to selectedItemIndex for clarity. Cleaned up some other confusing ternaries.
Expandable button cleanup