.gitignore added
major refactoring: implement global 'retr' function