Add 'usage' functions. Use of 'dirname' and 'basename' from libboost.