Cleaned up related work.

Also changed how the introduction references the related work section.