New version using include and simplified code
added gitignore