API improvements

Update, add, delete where checked and tests added. Exceptions module was created.
ok