Mush library in external file
adds mush 1.66 modifications (duplicate fix)