added isApiHeader to header
added null check on optInit before indexing for the arg
generate a Jamroot file