Typos and minor issues fixed

Fixed a minor issue causing an unnecessary sort of vertices and some
typos.