clean up log
Refactoring

more prototypes
Add line resize tests
More documentation

say what it does.