initial bash completion for subcommands
a bunch of bash/unix cleanup
update parameter format in documentation