To understand code quickly, I recommend grabbing the source repo and adding it to an IDE so you can easily jump from a function call to it's declaration etc and just hop around the code. Sometimes, however, an IDE can get in the way, and it's easier to just use grep in a terminal to see where a particular function call is used/defined.
Eventually, you do build up some intuitions about code style and flow within a particular code base and will be able to comprehend it faster, but often it can simply be a painstaking process.