Merge pull request #329 from Jedwondle/master

Trying to merge into Master.
Adding some sleeps back in for stability, the timeouts on the functions don't always get the job done.
After running the scripts many times, had to add some more delay to make sure it is consistently giving valid results.
Merge pull request #330 from blaine-O/master

Consistency- added a few more delays so it always returns valid results
Fixed a few things for correct java here.