implemented the -n option; wrote more doc