Use hyphenation library; split to lib/main