Fix bugs in rakefile and populate to get the driver code working