Added cmake simple application template and some little changes