fixed bugs in cpu
remove junk