added comment and fix several bugs

also added test cases for PinyinToZhuyin and ZhuyinToPinyin