fixing ties not being saved across user sessions bug and improved functionality for generating base Cantus Firmi