Giving each project a unique id.
Cleaning up and commenting.