could you please split your part starting here in another method, since the method is too long by itself (i know it is not yours) and now you can add the documntation :)