fix issue #15
remove some warnings
fix some issues and update the version