Fix build
Fix Python example
Allow exporting IO functions. Improve documentation