Added methods to add modules via library, Added function to write common routing functions