version 2.3.1: adds build, npm packaging, tests