fixed some bugs
add bash completions
cache bash completions
fixed a few bugs in some commands