added docs for poly and line merging