Added Legend Support. Added opacity to map layers. Some minor bug fixes.