Cleaned up example with more idiomatic Rust
Generalised output buffer argument in write method
Added Copy, Clone and Show bounds to SamplePrivate in order to make Sample easier to use in APIs
Merge pull request #32 from mitchmindtree/master

Cleaned up example, generalised output buffer parameter and improved return types on get_stream_read/write_available.