Renamed writer to filewriter. Updated specs