Fixed some initialization issues. Started using parseInt and parseLong more fully