tweaked grammar to only allow one attribute section. Added code to beam beats.