Quick pass over the sm-knem code, indent fixes