Minor fixes: naming of variable, a missing return 0