fix check() bug
implements upload code
for testing
add partial hash()
fix some bugs
add session support
add getSession()