Fixed a slew of syntax errors...
A genetic algorithm is running, but results are very strange. Needs more research.