Set deployment target to 5.0
Added subscripting checker. Refactoring.