Changed the results interface

And starting to introduce a results io module.