Saving notes for referral view. Project refactorings (removed html-oriented code)