Made reading notes from external editor use dynamic buffer. Moved to it's own function.