add addition methods to Chunk, fix compilation bugs