PW/RK: add option --prefix-limit

While debugging for performance, limiting the prefixes is helpful.
PW: fix an endian bug

This bugs went unnoticed because it has been overwriting
unused memory.
RK: correctly initialize vars nnodes and node_id

Given that variables nnodes and node_id were initialized before
calling argp_parse(), they both were always equal to 1.