add docs for structure and app controller