Update gitignore to ignore IDEA files
Add tail implementation