Implemented the sort function for record[]s
Added a BSD license example. Updated the documentation