remove unused variable
add enum and set data type
fix problem
Merge pull request #6 from ideal/master

fix problem