The books are a compilation of stories but with the particuliarity that it took hundred of years to compile the stories because each story is from an especific period of time. What happens is that stories were been added as time pass by so the book keep growing. Also remember that at the beginning stories were pass by word of mouth but later with scripture the stories were preserved in books.