Sort members
Improve code documentation