Sortmerna api

App controller + accompanying unit tests
fix indentation