v 1.01

22 Nov 2013 : Changed license and added parameter hub_type