I added some docs and updated the readme. 
I think `class` is a reserved word, so it cannot be used as a variable name.