Added function for ADC and split functions up into .h and .c files and updated makefile