Added Comments
Included saving while closing capability