Oh? Awesome..!
Here's a little workflow I made how the program should work. Start from the BEGIN and carefully follow the arrows. All values are hexadecimal, like the $ suggests, and decimal if there is no prefix.
Ask away if you have questions.
EDIT: More pics!
Also, the file I used for reference in that workflow instruction image was Layout_y.nif000003.ROF. I attached it. Use it to Test stuff out.
http://www.megaupload.com/?d=B31ZPPLG