Merge pull request #141 from cr1901/nets-refactor

Refactor `nets` module to support more families.