Fix error on histogram creation.
Refactor main.cc
Add hook on run start (for verbosity).