Added more logging to term management service
Fixed term end time issue
Added more logging and changed implementation of getTerms method of controller