Fix application context and add application.properties file