moved pause() to canplay. added documentation