Added C bindings.

Currently have basic tests in "test1" program.
Fixed index specification for the C binding
Added "test2" program for to test the C bindings. Also added AUTOFD_PI macro for specifying pi to 32 digits.