add init(), add() methods + formatting, var extraction
add init(), add() methods + formatting, var extraction

Would break this up into several commits, but git add -p considers
almost all the changes 1 hunk.

Shabonkerz/logfind