Getting an error "compilation terminated. exit status 1 Error compiling for board Arduino Nano"

Yeah, I did and installed the library recommended by them. It's strange because the library then gives no error for the code given in their GitHub examples but does so for this code, which I presume to be due to the different syntaxes.
Also weird that the library given by the App officially itself causes errors.
I needed one more help, in the library recommended by @sterretje how do I find out what the commands for the library are? I looked up in the Datasheet and register maps and found them quite confusing