Added additional comments documenting new functions