Updating code to preserve rule information, adding interactive fitness function, bug fixes