Initial code with some basic modules and tests.