added comments/docs