Updated documentation. Removed dead code.