fix related links and various bugs, typos, etc