The loop to store the books was skipping every other line. Should be fixed now.