Completed scale algorithms and mode files, thus completing main MusDat functionality.