[ADD] Added oppFunction and test
Merge branch 'master' of github.com:slimgroup/pSPOT