cosmetic changes
explicitly initialize pointer to NULL that gets passed to realloc()
be more conservative in how to access class members of the bonus structure