parse_CAs.c - implement error checking, remove magic numbers, compile fix