Added .gitignore and basic error debug handling