Fix leaststates, add manpage