Added options to stop program after each stage
Added version flag and version info
adjusted output directory creation and handling of files with multiple queries. Testing needed.