The Nxt sourcecode is really terribly written, which is a shame.
Much of this was because there was no white paper or documentation, and when pressed for details beyond the most basic, the developer just told you to read the source code once he open-sourced it.