added documentation for command-line use