added more documentation to the WebCUDA JavaScript API and made minor
alterations to the code to reflect changes