Adds ignore file and adds function in correct position in the main file: