Starting to bring sanity to the API. More generalized KAT object and file API now.