Fix returned value since it was not consistent
Add internal documentation