Set up build system and wrote testbed code.