Bug Fix!

I forgot to copy read code from readConfig to readFactoryDef, fixed now.
Code wouldn't compile, I had updated the signature but not the body of the function