readability improvement and a bug fix

	 Added prefixes to constants and gobal variables
	 fixed adjusted current percentage calculation
	 renamed DAC variables cleaned up equation