Added recommendation endpoints, bug fixes