Fixed another few bugs. The bot now follows commands.
Renamed line_data to linedata for consistency.