Modified CRUD Functions and added comments, made output response JSON pretty.