For the bot not running into walls I have some advice.
First off, bot events doesn't have anything that will prevent the bot running into walls. However, you can instead add events to the walls for onbottouch>bot>setbotaim> [namedbrick] and then put a named brick in the center of the room or whatnot.