fixing broken links and parts of code