fixing book addition & adding random id generation