Adds alert messages for save and open actions. Some code cleanup.
Updated the docmentation.