add categories parameter to each filter and bitmask extraction to coords. fixed webgl mem leak. fixed back ref to old_filter switching. added takeover category.