Corrected functions for activity driven model generation

- now link densities are reproduced accurately
- need to tune the functions for stability