Modify ReadFile to split header into tokens and remove unneeded files