add comment to every class, fix AppManager class some bug