added license. stash.
copy in the raw java rather than copying one function at a time