added documentation and debuged resistive circuit. Need to replace 40K resistor with a 100K pot