Converted all double precision load variables to 64 bit integer, which allows for a few more optimizations and faster calculations