Updated .gitignore.
Fix types on functions, add Poly type.