Included gitignore and small refactor of main implementation