changed unpacking method in unpack_dat:parseWord to work with bitwise operations