commited after serio testing. And also commented _IEEE_BIG_ENDIAN for temporary fix which was creating problem in swapping.