@erkel
It is working now.
Just a noob issue.
It was the endianesse of the values. it gives the output as expected when converted to little endian, rather naturally reading the value.,