fix a potential bug, correct usage statement
add man page