Various link-related fixes, closes #7 (closed), #8 (closed), #9 (closed), and a couple other minor things.