Added some source code documentation

Signed-off-by: Paul Săpunaru <paul.sapunaru@gmail.com>