Started integrating library with Tria. Most of the changes were to figure out the best integration approach and once fully integrated some of the code will need cleaned up.