added a template combination number and permutation number generator, also improved constructors to be more flexible and versatile. fixed some typoes.