small refactor and gitignore added