added op for pooling

Basically adds pooling to the supported ops.
Update the error message.