Code updates

Changed some things in the code.
Analog

Added analog functionality :)