added package creation function, added pacakge copy function