Modified code to work with INI file

This code is ready for launch as far as I can tell