Bump to 0.4, now checking with R-devel
Various changes, minor and major (Defuntified cta_markov and ctap_friedman)