corrected some import errors, added fileIO function