Changed return code for argument parsing.
Calloc return error checking.