move weight parameter to last
merge levels parameter
deprecate countmap in favor of counts
2D count-map support
2D countmap
cosmetic changes