Updated node app to read ig settings from external file. Small refactoring.