added Config class to access config file
added license notes and formatted code