MapEdit Work

-bug fixes and improvements