Added Saving Notes as well improved code