Added main function so this can be called with arguments. Refactored get_common_elements, will refactor and comment on modify_includes later.