Fixed memory leak.

Change-Id: I7b01ced4c6f55755ba2e937c1ae77d9f4a2e440b
Fixed documentation and removed unused code.

Change-Id: I8e1bcf621e3ac837e0bafaa83c7b1ba1652889be
Fixed legacy parallel reader and writer.

To work with the new pipeline changes.

Change-Id: Ic5c8ac86026999f79924d8e61b10fbcb18286bb8