* clean up unused code
* documentation