rename nline* to prevent naming conflict
allow specification of input dir
add zero-arg constructor
bug fixes