Subtree grafting switched to Phylo MRCA method (corrects length reoptimization). Added function sanitizeInputs.