cleaned up main.c w000  - also, created device driver for core cpu functions