Fixes

Fixed cloning, added copy constructor, implemented testing for new
features.