Retab and switch to arrow marker.
Move includes into subdirectory and add extern C.
Add some const-ness for C++ compatibility.
Merge pull request #2 from trainman419/master

Refactor into a library