Cleaned up documentation and formatted for readability