adds code and documents the thing