Ensure buffer is empty before use.
Added ability to run programs from cmd.
Renamed prompt environment variable.