Updated the kmp_real function, it wasn't functioning correctly (it does now). Made a few other small changes.