Adding getOpportunity by id function.

I found that using getOpportunities($id) didn't return expected results, so I created a new function for getting a single opportunity by id - getOpportunity()