Fixed PHP errors in Threshold handler
Updated readme and examples with Threshold handler