added demos and codebook functions from amcat-r