Tested and works. Changes made to initialize the bits for ADC10 in main.c rather than in the implementation file, also cleared INCH3-0 in the sensor functions which solved the problem that I thought was caused by loading.