Reorganized code structures and removed redundant ones. Improved some parts of implementation. Fixed the issue in collision of zoom levels when editing multiple map widgets. Added code documentation.