added comments about functionality