Draft of docs. Minor changes to the app code.