Add contacts and private notes to publicview agreements and fix some bugs.