Prints errors if generating API doc fails
Updates composer file