modified to include txt output and includes executable