added writing of ordered zones (maybe this is not the best way, i hope nobody uses this)
some comments about internal problems, too.