Reduced the code to 'bare bones'

Now the hardware is ready, all circuitry is tested, so it was a time for
a final cleanup. Now I will write firmware based on this.