Added document name as part of the assets folder. Also added validation so the action only runs on saved documents.