Update AppKit.php

Added clean function to Main class