added benchmarking and amd/cjs support