housekeeping
changed cbc to link in the code
made line_follow use the average function
added some error checking code