made some functions static, and added gitignore