API improvements

Update, add, delete where checked and tests added. Exceptions module was created.
This is cleaner :+1: