moved graphs to pitch detector manager, and cleanned up unused variables