Dev/add iostreamers

implement input and output streamers (fix #7 and #2 )