Fixed some bugs, added a stop button (dependent on the state of the play button).