Cleaned up and expanded documentation