Fixes #1, added support for log(af) histogram