Adding a structured library to enable testing

for the names + trees