Externalize parsimonyCost, and modify extract function.
Document new functions in parsimonyNumber.