Renamed NSDFObject to NSDFWriter.
Added implementation of core functionality of the NSDFWriter class.