Improved app setup to check for index existance. This resolves #31