Initial commit.

The programs have been written already, but still need some fixing as the
sandmark test program fails. Test programs also included.