Adding a sha1 check to tarball download

and breaking things up a bit.