don't crash on protectionclass detection in sim.
Merge branch 'gui'
Launching app in simulator fixed.

* Function for launching seems to have been removed in iOS 7

closes #15