Added RO.

Fixed data types.
Fixed memory leak.
Fixed binary test file.
Fixed some test cases.
Added feedback on the specs.
Fixed various style issues.