V1.01
Removed casts to int16 as not needed as 16 bit math was slow