Added roc module.
Adjusted read and write struct and rank dir, handling non-available
data.