added total length 'totLen' to note summary and octaves in stats.py