Refactored Script to be more flexible

I removed the XCode generated files, and re-wrote the script so it isn't relient on exact line positions.

Work for the reader:
* Remove duplication
* Build a CSV rather than a plain text file.
* Make code modular
* Add tests!