added COMPILE_OPT
upgrade operator syntax
comments
fix corner case when bins have no counts