Refactoring and update sample, update build.gradle as well.
Update README.md , .gitignore.