Updated build commands with clang arch specification, and did a few tweaks with the data types in tss and isr to avoid data loss