How to read the source code efficiently?

Hello,Guys.
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 Bart_modelling.py, which is exhausting. Can you guys give me some suggestions to efficiently read the source code and modify it?