Added ability to customize interval in histogram, issue #7. Also fixed bug that caused editor and panel to be in different scopes