Removed old code. Enhanced documentation.