document more functions
fix assertion in hist2d that should be an error