lots of cleanup.  added tab completions to commands, fixed some small issues