Improve documentation. Fix bug with add(). More unit tests