Updated readme
Added ini config
improved checking for valid configuration