Adds uid property and some topology code

Closes #120