Fixed some copy-paste bugs and formatting.