Housekeeping and documentation changes.
Added count option.
Added more metadata.
Updated tutorial.
Enabled line-buffering, tidied comment indentation, added fileno() support.