Remember last open folder of data and script files; track item selection change by arrow keys in TreeView; code cleanup.