Refactoring code and writing internal docs.