A. Grave's RNNLIB made more readable