resolved minor bug in wireIn for needs, standardized on definition() as the wrapping function and added protection for non CommonJS environments