Correct spelling mistakes in documentation

Some of the API functions use "threshhold". This may be a typo in lua_api.txt, but if it isn't then the API has spelling mistakes in it as well.
I'm pretty sure it's 2 m's