generalize function name.
change AI parsing to use DSL format.
change unit parsing to use DSL format.
better file handling.