jsdoc for lib/advice
Add unit tests for lib/advice. Fix probs found, win.