Changed namespace usage

New function is hash(hash(ns) + hash(data)) if ns is set and
just hash(data) otherwise
Merge pull request #113 from euroelessar/master

Changed namespace usage