Added additional tests & documentation.