Working small test case for calculate.
Added ranks to hmm_profile factories.
Cosmetic changes to other files.