fixed minor bugs and broken links