Adding in settings for auto-save and automatic removal of empty notepads. Some event hook changes for auto-save