changed XML header to only be outputted at the method level instead of the constructor