Ranks fix

Added button to reset ranks to default values. Documented and cleaned
up code in respective files