added docstring for w3_getval, more documentation to come