Moved some stuff around and debugged.

Moved things into directories. Added a wrapper minimal example and a
makefile to quickly test the class.