Const correctness

const in function parameters
updated examples
friendly configuration parameters