Clean up some types
AppSettings and regions improvements
const-correctness
Fix interactive mode iteration