- added an  instance of the PacketGenerator.
- DEV_GETC replaced.
- More DEV_* macros made into functions.
- DEV_WAIT done.
- DEV_GET done.
- CHKSUM macros converted to methods.
- Tidying.
- more refactoring.
- refactoring.
- more refactoring.