Added initialization of reference, temp sensor and ADC
Fixed error with peripheral function of pins (ADC)