further modifications of syllable function, added some tests.  Yuki and Paul.