move sample app and add configuration for specific directory
Remove reliance on double and use instance of configuration
Refactor, and check for existence of configuration directories.