Sortmerna api

App controller + accompanying unit tests
Fix indentation