Further cleanup of modlibrary file, so i can start adding our own.