Documentation for app factory initialization

Shortened the example code block and added it to README.md. Not sure
how index.rst is working (I’ve never used sphinx), but updated that
documentation too.