Fixed various bugs and added coverage visualizing histogram