added more documentation and fixed several bugs

(needed cuInit(0)) and also fixed the memory handling to use ArrayBuffers
fixed bug in compilation
adding tests for webcuda and fixing random bugs along the way
fixed bug with not being able to retrieve function from module
fixed some bugs with kernel launching
fixed bug in js file
changes organization slightly