Added command line arguments
Added read() support for files
Renamed variable to match style elsewhere