removed unused function union()
added a licence file