Fix "for loop" syntax
Remove "inline" declarations for clang compilers
Replace unnecessary "else" with additional "if"
Fix constructors/destructors