Added allowed hosts to settings
Cleanup for strings and global variables