Add Stop functionality

Fix #24 

@imkira please take a look and let me know if this satisfies your needs.