Code cleanup.  Separater gui framerate from preview framerate.
Renamed moments to patternSets.  Lots of comments.  Lots of renames.