Fixed several bugs, simplified a bit the code. Still, there is room for some improvements.
Fixed several bugs, simplified a bit the code. Still, there is room
for some improvements.

perror/librlimit,perror/librlimit,perror/librlimit