Added code documentation for some parts of teacheradmin