made variables private, added ability to change fileOut mid-execution