add which.min.key() and line.merge()
fix corner case of length 1 key vector with no eligible keys
add man page for which.min.key
add auto-close option to line.merge (on by default)