fixed the following functions: paste, subtree, remove_node
as well as the module test

Module test runs without errors. Ready for beta testing.