fix a few bugs, add example project
Pull master