Fixed some minor bugs and corrected some text.