Added function declarations

Also added partial setup of ADC