Reorder some functions
Prepare file object for adding the create_pipe function
Update examples