took out key handling function, not really needed here. made tone a square wave