use Makefile instead of shell scripts
remove unnecessary type declaration
fix #75. enforce series name rules when reading and writing data