Added some comments to describe the operation of bolerplate.scala