Merge pull request #5 from nenick/master

port bash script as gradle tasks.
Some cleanup for the gradle tasks.
Update README.