Added explanations. Added a simple sort wrapper.