fixed som hashing issues and added type checking support to the update method.

Signed-off-by: gitta-mannen <mail@janpettersson.com>