move class
better argument names
use krsort
add docblocks