crud function added with debug features (show url, response and handle error / success responses)
ajax pulling for "discontinue" function debugged.
corpus creation debugged