Changes in ruler thread to make it work with last liblinked.
Deleted unused arguments, minor changes to help messages.