install files
fix const correctness and warnings