bug fix

fixed a app stack bug
added documentation to the AppStackController