deepcopy added; closes #7