Threshold data saves to file

Can edit and change threshold data through preferences dialog