print output to standard out, remove option to scan directory
remove unused variable
fix inconsistent indents and remove superfluous code
allowed nested lists to use tabs OR spaces
use True/false for boolean conditions rather than 0 and 1