some modifications to rank.py

still need to mod readModels and add additional ranking functions, and
writereport method.