Added task deletion API
Fixed typos
Better relations constraints