Resolved documentation namespace issues (JSDoc), restructured lib