Reimplemented linewrapping, automated theme detection