Fix missing var declaration
Update codefolding for 3.x changes
Merge pull request #133 from juhasch/codefolding

Update Codefolding for 3.x changes