import things for StreamWriter
defining the StreamWriter
export function functional
almost feature complete...