Getting Started

The community project Naith is probably the most in-depth example you will be able to gain access to the source code of.
[url]Naith]
http://code.google.com/p/naith/