added better comments and started regex example