Update 0.8.1

Add settings function.
Fixed some bugs.