fixed some runtime errors; tried running as is on the actual irobot, doesn't work yet