wip - wagon class refactoring
fixing require suite in lib/index.js