Cleaned up virtual memory code and documentation.