fixed comment issues and use of AppController