added adcinit function, compiles correctly no warnings