Issue 686 creating an application

Closes #686