assert added to check for null pointer
assert added to check for null pointer
improve clarity with typedef
assert added to check for array for valid numbers
assert added to check for null pointer
assert added to check for null pointer
add assert to check for null pointer
added assert to check for null pointer
check for null pointer
null pointers everywhere
added asserts in the code