added some source code documentation by Andre.