returns function names used in script(removes false positives like array_names and names from comments)