added code docs. removed Integration element from xml export as this is currently an unsupported feature.