Finish work on base methods.

Completed the convert() method, and modified read_rules() to split rules
into atoms and flags, also modified save_rules() to handle the new
format.