feature.py - broke up long divisions into smaller chunks, added comments