v0.6.0

Add new options and events, fix #68 and #71, and optimize the structure
of the code.