Add comments & change function name

Signed-off-by: Louis Bouchard <louis.bouchard@canonical.com>