first draft of application.
minor edits