Integrating trenton code. Initial commit.