How to read the source code efficiently?

I am currently do a summarization task. And I want to change the behaviors of Bart Decoder, to be more specific ,I want to add another attention layer in the decoder.So I have to modify the, which is exhausting. Can you guys give me some suggestions to efficiently read the source code and modify it?