added p keypress to pause and resume the stream, minor fixes