Major Code Cleanups, Added Ref debug in all fragments and other classes.
Other cleanups also done.