Cleaned up code.

- New int values
- Changed communcation methods
- Used analog pins