Fix unregister process.
Add options test.
Refactor code.
Update clipboard in sample.
Fix event listener in sample.