Split error check of `manip` from execute.execute

I fix the error argued in #36
I also split the error check code from `dataprocessor.execute.execute`,
and write doctest.

Please review and merge.