Restructured the response file generation scripts and functions.
Major updates to wl functions.