Commit of original code.

This is version 1.1 which is the post Autofire 2007 Competition version.
I believe it contains just a few bug fixes found during the competition.