add nonfatal out of memory check for file loading
increase max log entries
parse files individually in sequence, then free them
use unsigned int for some counters