registerHandle now return pointer to handle or 0
added period variable
added joint limit interfaces