Please take a look at [the note about main function](https://github.com/BVLC/caffe/pull/107#discussion_r9717803) by @Yangqing in #107.