Added docs and additional equality functions