API improvements

Update, add, delete where checked and tests added. Exceptions module was created.
But due to this. Other functions become a lot less clean. Demanding an extra argument everytime.