Added pattern documentation