Updated README.md and factorial.c with error handling