Updated .gitignore, added fixes for leaf decode