Update AppKit.php

Lots of major changes