moved preferences to file and improved screen stats