What was Darwin's process on writing his books