Added OFX support, moved key function to classes.