Add function for creating github source links

fixes #22 and #17