Please study the tutorial. It explains how to create scenarios and run simulations.
If you want to add new modules in the ns-3 codebase, that's also explained in the manual.
Before asking a new question in the list, read the posting guidelines.
Regards
K