If you want to check if your map file is correct, you can use my online tool at
http://dominions.realites.org/map_randomizer/
Juste uncheck the randomize options so the script doen't try to change any province, and if there are any unrecognized command, they will be listed.
Moreover, the script will output a cleaned map file, with all infos grouped by provinces, and add comments about each provinces terrain types.
The tool has not been updated for a while, so there might be some new commands from last patches still not recognized, but it shouldn't be too hard to update
I had also started working on a map editor (see the beta
http://dominions.realites.org/map_editor/) but both projects have been put on hold for a while.