Add comments and extra braces

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>