Forgot to update the arduino file on the last commit.
Here it is with comments and writing to the mode register.