Added interface for bot and fixed small bugs