added .obj files to be ignored by git version control
added minor feature: return the number of the output function when adding a new one