added code to parse dict and sentence files. not tested yet