Fix several broken links

Thanks again to @cdeil and @bsipocz
Make all doctests pass