added constructors for file writer, buffered writer and reader fully
working