more scalaioutil methods. memorymappedpe cleaned up and commented