more cleanups in beat tracker
checking in tracker demo script
a few more cleanups
a bunch of tiny bugfixes