add NIMSWriter base class. name changes for clarity

- adds more documentation and docstrings
add minimal dicom parser