Fixed typos and removed some useless stuff.