Restructered bot_mrlib