Document code and fix condition to filter
Code documentation is done as pointed by @pingou and @jcline
The condition private == username is removed because there was no need to filter,
the filtering needs to be done when a different user is viewing the projects.