Gitignore agregado, bugfixing and refactoring menores