fix generated app code
docs, started work on tutorial