added histogram method
modified gui. added menu bar functionality