Issue-15  should be able to pass in cfgfile

Issue-15  should be able to pass in cfgfile