Wrote file reader and deleted unnecessary files