minimal documenting types

also removed some unused code...