addes rest controller for score and doc for future reference