added support for having models as model object attributes; cleaned up the RowController definition, adding explicit stage and sweep registers
moved example code into exmaple.py