KML Parsing fixes and better error reporting, along with a few minor formatting fixes