corrected a wrong initialization
removed write_tables arguments since it needed modified PyFoam and didn't work anyways