bug fixed & readTuple & readAttribute

bug fixed
complete getAttribute
readTuple
readAttribute