Added comments and moved portion of code for slightly better visibility
Added comments and moved portion of code for slightly better visibility

CIRCL/AIL-framework,CIRCL/AIL-framework,CIRCL/AIL-framework,CIRCL/AIL-framework