Adding back GraphIO class with minor changes. Initial commit