Made sure everything obeys the iter and weight settings. Also improved pep8 compliance.