stupid lua making key-name-getting stupid fucking confusing.  Whatever.  Rearranged function locations and heirarchies for better navigability.  Started on creating a general-purpose genetic algorithm but hit wall against stupid lua.  Will finish later.