Initial commit with cursory tests.