Minor text fix
FIXED: permute errors
UPDATED: Added doc strings to matching functions and added checks for input types