Added the ability to log Sets. Added a few comments.