Initial commit. Working toolchain and emulator