Fixed some problems with links and made a few improvements.