Bug fix in autocomplete for exercises

and refactored
sort exercises by name in edit screen
fixes to edit exercise screen