Renamed core module to cpu, added single-port I/O
Overhaul I/O, fix control flow, add devices