the noise function does something, but i cant figure out exactly what, yet.
it seems like it generates only 0 or 1 , randomly
debugging can only be done manually i think. if there are errors then most of the time there is a precise description given the linenumber..
if you just dont see something than its up to you to figure whats wrong