updated name of sink to writer since its no longer a sink really
removed object file
refactor to writer code