update gitignore and add comments for app controller