Changed code to follow coding style;
Added script file to CMakeLists.txt