added a pause control

see #21