IO operators implemented.

An empty constructor has also been added for input purposes.