Cleaned up, added libs, and the test code. First approximation. Build
doesn't work yet.