Added in BaseController with support for automatic searching, paging, sorting, and data trimming
updated comments