added comments for documentation