bugfix in custom sort
various changes/fixes in readme