Cleaned up code style.

Also switched plane creation method to take advantage of the existing
function setFromCoplanarPoints.