(feat) add comments in the factory.js