Implementing appendToStream
Removing obsolete write classes