Declared all functions and some variables for RiskService. Still needs comments and summaries.