Modify to support ARC

Also change some things to fit my personal coding style
Fix bug with smooth curves
merge in e5feab1e4
ARC fixes, warnings--, plain vanilla alloc.
fix failing unit test.
copyright 2014
ragel link
cleanup, indent, naming conventions, unit test fixed.