Added streaming methods and example. Some format cleanup as well.