Updated with new t1t library. Compatible with mac. Added licenses to the headers of the source files.