Support for bended notes, detection of non 4/4 time signature. Minor code/structure cleanup.

Support for bended notes, detection of non 4/4 time signature. Minor
code/structure cleanup.