Added some comments, plus a benchmark as an example