fixed several errors when no arguments are used
fixed some more things regarding command handling