Fixed missing parameter 'type' for update and renamed variable for it
Fixed return codes of commands
Fixed typo
Replaced tabs with whitespaces
Merge pull request #7 from hhenkel/master

Fixed missing parameter 'type' for update, renamed variable for it and fixed return codes