Delete commented code and add some documentation.