Update doc, make sure examples work
Merge pull request #541 from JuliaStats/doc

Update doc, make sure examples work