Updated deft to v5.1
Re-formatted code, added some functions
Updates, added some modes