added sorting functionality, changed readme