Basic unvalidated writing of packages
Implements writing and changed read to work with an inputstreamreader