rename shogun -> modshogun for R and add some fixes