just added some documentation and commented out some unused code