reference now stored in the bot, legs now have a reference to the bot they belong
add a test unit for inverse model