Map editor started. Several bugs fixed.