Added working CPU simulator and some UI changes