Added if snippets and update of coding style to most common