added first version of sample_calcomp, still needs thorough testing