remove commented and unused code. add some documentation.