remove trailing 'comment' from .gitignore addition; use glob for lib; add unit tests