Applied changes to public version bringing it to the May 10/2013 version
Added more support for Carmin(influx) data; use setfig

Compute bins using strsv+ctl
Revamped gates to handle specific types as well as expressions