Refactor lib files. Do not expose internal modules.
v2.0.0