Fix bug in decode and update commands. Added getlog