Fixed some bugs with pointers in C lib - still not working
One thread working
Fixed size of file in header
1 thread fully working. Generates good noise and shows in GUI.