add COPYRIGHT file
fix wrong analog pin nr usage and add copyright notice at top