Move open functions to the bottom of the file
Filenode now is compliant with the interfaces of the standard io module (see gh-244)
Code cleanup
Update doc for the filenode module (closes gh-244)