hold and detect clean up - LG

put variables in groups, removed extra variables
HADC8 code now functional.
Merge branch 'refs/heads/HoldAndDetect' into Master