Updated documentation. Removed unused imports and functions.