remove unused code and documentation