fixes to handling of corner cases and other bugs
adding multichannelsupport to layercontextmenu
fixed normalization