Removed redundant code. Fixed gitignore
Small fixes