Added a test/exaple

-Added some comments
-added a test