minor tweaks for renaming
renamed the internal lib, fixed a segfault in dealing with strings