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.
My editor says that is incorrect. I guess it is being silly.