lib/*: renamed variables, modified methods to use the private variables.
Updated build tests to use the latest libraries.