Added encode declaration and code format.
Fix shadows 'next' built-in. Closes #142
Merge pull request #143 from gmist/fix_shadows_next

Fix shadows 'next' built-in.
Merge pull request #140 from gmist/fix_code_style

Added encode declaration and code format.