version to 2.3.1

* make the "methods macros" more efficient (#140)

/cc @jcredding