Updated documentation and removed dead code.