Modified make file to make it more flexible.

I also started to work on a rebot class.