Modified add_project.js to make functions cleaner, and added more comments