Gained a bit of performance by writing the ByteArray at once.
Changed embedded assets reference to constants.
Cosmetic changes