add chunkline state; modify makefile; astyle