quick fix for threshold checking
fixes tests
adds endpoints for Xavier's competitions
Merge branch 'master' into production