Moved function main, updated documentation

Moved from main-function read from adc channel 0