Issue #80, Added threshold method

The method updates the threshold every day at 12 AM. This is done
using the gem called "whenever".