Added debug tools; added support for DMS conversion