Fixed #16. Added IO class