Implement diary. Fixes #5

Documentation in belltimes.js, style improvements.