Added missing curly brace and amended some comments