Fix line splitting bug

Treat unrecognized characters as words
Output filename to GUI
Simplify and bootstrap the UI