Added main function so this can be called with arguments. Refactored get_common_elements, will refactor and comment on modify_includes later.
Ooops forgot to add the IncludeSwitch.py changes.
Merge pull request #1 from rpcope1/master

Some refactoring to think about.