rewrote getVersion function, and added radix to both parseInt calls.