Let term buffer grow as needed
Add better error handling for line scanning
Merge pull request #2 from purzelrakete/fix/term-length-and-corrupt-dictionary

Fix/term length and corrupt dictionary