Update structure to prototype style and document everything