Redesigned remove_from_dwnp_data and append_swnp_data. Added docstrings.