Merge pull request #1 from zqsd/master

Adds a number of attempts for connect
Updates gl-matrix version