modified writer and filer classes

modified writer and filer classes