changed the util method to create file of a size to return an in rather than file stream pointer.
replaced global shared saved file pointer with a separate file pointer for each pwp thread.
updated method signatures.