Feature/io stream

PR for  Issue #153