Add docs and delete some unused methods.