Inserted fix in case there is a duplicate function or subroutine

If there is a duplicate function or subroutine name, the script will error out. 

The fix will find the duplicate, log and ignore it, and if it's not a duplicate, it will add it to methods. 

What do you think of the fix?