added logging and some more commands.