Added note formatting functionality.