Converted links to the reference-style links and fixed some lists bug.