Added group homes and prime-ness

Majorly reorganized, broken into logical sections.