cleaned up the code
added instructions for settings.txt