Code cleaned a bit. Added temp_threshold and intelliplug options