Move helper files to lib directory
Remove trailing whitespace
Add example corpus files