Put library is its own namespace
Set internal variables to null instead of unsetting so they can be used later