Minor enhancements

improved/simplified memory allocation

Signed-off-by: Andrew D. Horchler <adh9@case.edu>