Initial commit of code

Uploaded version functions. Minor errors in commenting need to be fixed.
Changed parfor for one thread per cpu core

Further parallelized, should make the code faster