Moved KML header and footer into emitCoordinates. Added the final 's' to
the latter method name.