For the book idea, I'd go about looking over the note code. That's probably the first place you want to start. Get an idea of what it is doing and then move on from there.
Not really sure what you're asking about the second question. Can you give an example?
Expanding on this, make a book a container that can only accept notes, then, have them write a note, eg:
> note write
> Once upon a time, the fish did a dish ka bish.
> put note in book
You attach a page to the book.
> look book
Book 'fish dish' has 1 page
> book compile fish
You bind up 'fish dish'. This item will now appear in chests around the world!