Restructured for ease of maintenence.

Might as well catch the problems before they arise. Project now has a
dir for the library itself and one for a demo program to test the
library.