add speedup batch script and minor changes in spike and sparse_creator