Swapped out built-in random number generator for XORSHIFT128+ PRNG, simplified library functions via optional arguments. Still needs some work.